package com.shenfa.bean;

public class TreeNode2 {
	private String id;
	private boolean leaf=true;
	private String text;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public boolean isLeaf() {
		return leaf;
	}
	public void setLeaf(boolean leaf) {
		if(leaf){
			this.leaf = false;
		}else{
			this.leaf = true;
		}
	}
	public void setLeaf(String leaf) {
		if("0".equals(leaf)){
			this.leaf = true;
		}else{
			this.leaf = false;
		}
	}
	public void setLeaf(int leaf) {
		if(0==leaf){
			this.leaf = true;
		}else{
			this.leaf = false;
		}
	}
	
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
}
